Skip to content

fix(webhook): reject empty secret or signature in HMAC verification - #408

Draft
tbarbugli wants to merge 1 commit into
mainfrom
tommaso/sec-2519-webhook-secret-validation
Draft

tbarbugli wants to merge 1 commit into
mainfrom
tommaso/sec-2519-webhook-secret-validation

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Linear: SEC-2519

Summary

  • Reject empty secrets or signatures in verifySignature (src/utils/webhook.ts) and StreamClient.verifyWebhook (src/StreamClient.ts).
  • Add unit tests in __tests__/integration/webhook-signature.test.ts.

Testing

  • yarn lint (0 errors)
  • yarn test --run __tests__/integration/webhook-signature.test.ts (8/8 passing, 0 type errors)
  • Full CI will run the integration suites.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant